package com.feiyu.order.feign;

import com.feiyu.common.utils.R;
import com.feiyu.order.dto.LogisticsDto;
import com.feiyu.order.entity.LogisticsInfoEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @Author: Doate
 * @Date: Created in 2021/4/9 15:43
 * @Description:
 */


@Component
@FeignClient("feiyumall-logistics")
public interface LogisticsFeign {

    @PostMapping("/feign/receive")
    public boolean receiveGoods(@RequestBody LogisticsDto dto);

    @PostMapping("/feign/searchById")
    public Map<String, Object> searchById(@RequestBody int logisticsId);

    @PostMapping("/add")
    public Integer addLogisticsOrder(@RequestBody LogisticsInfoEntity param);

}
